#include "modbusclient.h"
#include <windows.h>
#include "comm_sim.h"
int main()
{
    int counter=0;
    ClientRequest* crp;
    const BYTE buf[]={0x01,0x02,0x03,0x04,0x05,0x06};
    ModbusInit();
    HW_UartOpen();
    while(1)
    {
        Sleep(200);
        ModbusProcess();
        counter++;
        if(26==counter)
        {
            counter=0;
            pushModbusRequest(buf,6);
        }
    }
    return 0;
}
